<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>七种`CSS`方式让一个容器水平垂直居中</title>
  <link rel="stylesheet" href="style.css" media="screen" title="no title">
</head>
<body>
  <h1>七种`CSS`方式让一个容器水平垂直居中</h1>
  <div class="wrap">
    <div class="center"></div>
  </div>
  <h2>The Last</h2>
  <div class="table">
    <div class="table-cell">
      <div class="content">不固定宽高，自适应</div>
    </div>
  </div>
</body>
</html>